module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:9081/admin',
        changeOrigin: true,// 允许跨域
        ws: false,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  lintOnSave: false,
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "@/assets/css/_variable.scss";` //引入全局变量
      }
    }
  }
}
